package com.hejia.bulbul.entity;

import java.util.List;

/**
 * 
 * DataTables期望的数据格式
 *
 *
 * Created by showone on 2014 下午4:17:43.
 */
public class DataTablesReturnObject<T> {
	private long iTotalRecords;// 过滤前总记录数
	private long iTotalDisplayRecords;// 过滤前总记录数
	private String sEcho;// 页面发来的参数，原样返回
//	private Object[] aaData;// 返回的数组对象
	private List<T>aaData;

	public DataTablesReturnObject(long totalDisplayRecords, String echo,
			List<T> aa) {
		iTotalRecords = totalDisplayRecords;
		iTotalDisplayRecords = totalDisplayRecords;
		sEcho = echo;
		aaData = aa;
	}
	public DataTablesReturnObject(long totalRecords, long totalDisplayRecords,
			String echo, List<T> aa) {
		iTotalRecords = totalRecords;
		iTotalDisplayRecords = totalDisplayRecords;
		sEcho = echo;
		aaData = aa;
	}

	public long getiTotalRecords() {
		return iTotalRecords;
	}

	public void setiTotalRecords(long iTotalRecords) {
		this.iTotalRecords = iTotalRecords;
	}

	public long getiTotalDisplayRecords() {
		return iTotalDisplayRecords;
	}

	public void setiTotalDisplayRecords(long iTotalDisplayRecords) {
		this.iTotalDisplayRecords = iTotalDisplayRecords;
	}

	public String getsEcho() {
		return sEcho;
	}

	public void setsEcho(String sEcho) {
		this.sEcho = sEcho;
	}
	public List<T> getAaData() {
		return aaData;
	}
	public void setAaData(List<T> aaData) {
		this.aaData = aaData;
	}

//	public Object[] getAaData() {
//		return aaData;
//	}
//
//	public void setAaData(Object[] aaData) {
//		this.aaData = aaData;
//	}

}
